Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check if ROI width and height is NaN #2464

Closed

Conversation

homuler
Copy link

@homuler homuler commented Aug 26, 2021

Fixes #1965

When //mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu or //mediapipe/examples/desktop/pose_tracking:pose_tracking_gpu is run on Linux, it crashes sometimes, especially just after camera starts or camera moves rapidly.
This issue occurs because widths and heights of detection's bounding boxes can be NaN.
This issue may be GPU-dependent, and I confirmed that it occurs with GeForce GTX TITAN X (driver version: 470.63.01).

Note that GPU sample (e.g. Pose Tracking, Holistic) may crash on Linux (cf. #2251) regardless of this.

@homuler homuler changed the title fix: check if roi width and height is NaN fix: check if ROI width and height is NaN Aug 26, 2021
@jiuqiant
Copy link
Contributor

jiuqiant commented Sep 1, 2021

Thanks for reporting this. Fixed in our internal code base upstream, and will be pushed to GitHub in the next release.

@jiuqiant jiuqiant self-assigned this Sep 1, 2021
@brettkoonce
Copy link

ty @homuler!

@jiuqiant
Copy link
Contributor

jiuqiant commented Sep 2, 2021

Merged in 6abec12.

@ROBYER1
Copy link

ROBYER1 commented Nov 1, 2021

Does this stuff ever get backported? We are using 0.8.4 at the moment and want to incorporate this patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageToTensor Error on GPU example for desktop.
4 participants